<template>
	<view>
		<view class="barTitle"
			:style="{paddingTop: top + 'px', height: height + 'px',paddingBottom: '10px',background: `rgba(246,241,231, ${opacity})`}">
			廖星星
			<view class="icon" @click="goBack">
				<u-icon name="arrow-left" color="#fff" size="22"></u-icon>
			</view>
		</view>
		<u-gap :height="top + height + 10"></u-gap>
		<image :src="mixiImgUrl + '/static/gerbj.png'" mode="" class="bg"></image>
		<view class="bei">
			<view class="bei-item">行辈</view>
			<view class="bei-item">字辈</view>
			<view class="bei-item">富公房</view>
		</view>
		<view class="user flex-center">
			<view class="user-header">
				<image :src="mixiImgUrl + '/static/11.png'" mode="" class="user-header-avatar"></image>
				<view class="user-header-sex flex-center">
					<image src="/static/男(1).png" mode=""></image>
				</view>
			</view>
			<view class="user-name">
				<text>廖星星</text>
				<text>字子清</text>
				<text>号镇直</text>
			</view>
		</view>
		<view class="tag">
			<view class="tag-item flex-center">
				<image src="/static/个人.png" mode=""></image>
				未认证
			</view>
			<view class="tag-item tag-item-error">享年43岁</view>
			<view class="tag-item tag-item-warning">第八世</view>
			<view class="tag-item tag-item-warning">排行：1[兄弟]  143[同辈]</view>
		</view>
		<view class="layout">
			<view class="layout-2">
				<view class="layout-item">
					<view class="layout-item-label">出生日期</view>
					<view class="layout-item-tx">1998-09-12  12:34 申</view>
				</view>
				<view class="layout-item">
					<view class="layout-item-label">家庭地址</view>
					<view class="layout-item-tx">某村某某号</view>
				</view>
			</view>
			<view class="layout-2">
				<view class="layout-item">
					<view class="layout-item-label">纪念日期</view>
					<view class="layout-item-tx">1998-09-12  12:34 申</view>
				</view>
				<view class="layout-item">
					<view class="layout-item-label">葬于</view>
					<view class="layout-item-tx">某村某某号</view>
				</view>
			</view>
			<view class="layout-2">
				<view class="layout-item">
					<view class="layout-item-label">通讯方式</view>
					<view class="layout-item-tx">1998-09-12  12:34 申</view>
				</view>
				<view class="layout-item">
					<view class="layout-item-label">民族</view>
					<view class="layout-item-tx">某村某某号</view>
				</view>
			</view>
			<view class="layout-2">
				<view class="layout-item">
					<view class="layout-item-label">出生地址</view>
					<view class="layout-item-tx">1998-09-12  12:34 申</view>
				</view>
				<view class="layout-item">
					<view class="layout-item-label">籍贯</view>
					<view class="layout-item-tx">某村某某号</view>
				</view>
			</view>
			<view class="layout-2">
				<view class="layout-item">
					<view class="layout-item-label">曾用名</view>
					<view class="layout-item-tx">1998-09-12  12:34 申</view>
				</view>
				<view class="layout-item">
					<view class="layout-item-label">婚姻</view>
					<view class="layout-item-tx">某村某某号</view>
				</view>
			</view>
			<view class="layout-2">
				<view class="layout-item">
					<view class="layout-item-label">职业</view>
					<view class="layout-item-tx">1998-09-12  12:34 申</view>
				</view>
				<view class="layout-item">
					<view class="layout-item-label">学历</view>
					<view class="layout-item-tx">某村某某号</view>
				</view>
			</view>
			<view class="layout-1">
				<view class="layout-item">
					<view class="layout-item-label">其他信息</view>
					<view class="layout-item-tx">1998-09-12  12:34 申</view>
				</view>
			</view>
			<view class="layout-2">
				<view class="layout-item">
					<view class="layout-item-label">继嗣</view>
					<view class="layout-item-tx">1998-09-12  12:34 申</view>
				</view>
				<view class="layout-item">
					<view class="layout-item-label">统计</view>
					<view class="layout-item-tx">某村某某号</view>
				</view>
			</view>
			<view class="layout-1">
				<view class="layout-item">
					<view class="layout-item-label">备注</view>
					<view class="layout-item-tx">1998-09-12  12:34 申</view>
				</view>
			</view>
		</view>
		<view class="relationship">
			<view class="relationship-title">家庭关系</view>
			<view class="relationship-list">
				<view class="relationship-list-item flex-align">
					<view class="relationship-list-item-c flex-center">
						<view class="relationship-list-item-c-name">祖父</view>
						<view class="relationship-list-item-c-tag flex-align">
							<view class="relationship-list-item-c-tag-l flex-center">
								<image src="/static/男.png" mode=""></image>
							</view>
							<view class="relationship-list-item-c-tag-name flex-center">廖东</view>
						</view>
					</view>
				</view>
				<view class="relationship-list-item flex-sp">
					<view class="relationship-list-item-c flex-center">
						<view class="relationship-list-item-c-name">父亲</view>
						<view class="relationship-list-item-c-tag flex-align">
							<view class="relationship-list-item-c-tag-l flex-center">
								<image src="/static/男.png" mode=""></image>
							</view>
							<view class="relationship-list-item-c-tag-name flex-center">廖东</view>
						</view>
					</view>
					<view class="relationship-list-item-c flex-center">
						<view class="relationship-list-item-c-name">母亲</view>
						<view class="relationship-list-item-c-tag flex-align woman">
							<view class="relationship-list-item-c-tag-l flex-center">
								<image :src="mixiImgUrl + '/static/女.png'" mode=""></image>
							</view>
							<view class="relationship-list-item-c-tag-name flex-center">廖东</view>
						</view>
					</view>
				</view>
			</view>
		</view>
		<view class="album">
			<view class="album-t flex-sp">
				<view class="album-t-title">个人相册</view>
				<view class="album-t-r flex-align">
					查看全部
					<u-icon name="arrow-right" color="#999" size="12"></u-icon>
				</view>
			</view>
			<view class="album-list layout-3">
				<image :src="mixiImgUrl + '/static/gerbj.png'" mode="aspectFill" v-for="it in 3"></image>
			</view>
		</view>
		<view class="album">
			<view class="album-t flex-sp">
				<view class="album-t-title">简介</view>
				<view class="album-t-r flex-align">
					查看全部
					<u-icon name="arrow-right" color="#999" size="12"></u-icon>
				</view>
			</view>
			<view class="album-tx">
				诚实守信 、见义勇为、清白做人、敬岗爱业。诚实守信 、见义勇为、清白做人、敬岗爱业。诚实守信 、见义勇为、清白
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				opacity: 0
			}
		},
		onLoad() {

		},
		computed: {
			top() {
				return this.$store.state.menuButton.top
			},
			height() {
				return this.$store.state.menuButton.height
			}
		},
		methods: {
			goBack(){
				uni.navigateBack()
			}
		}
	}
</script>

<style lang="scss">
	page {
		background: #F6F1E7; 
	}
	.barTitle {
		width: 100%;
		text-align: center;
		font-family: PingFang SC;
		font-weight: 400;
		font-size: 30rpx;
		color: #fff;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.barTitle {
		position: fixed;
		top: 0;
		left: 0;
		z-index: 9999;
		//box-shadow: 0px 10px 10px #666666;
		.icon {
			position: absolute;
			left: 30rpx;
			top: 50%;
			transform: rotateY(-50%);
			margin: auto;
		}
	}
	.bg {
		width: 100%;
		height: 386rpx;
		position: absolute;
		top: 0;
		left: 0;
		z-index: -1;
	}
	.bei {
		width: 100%;
		display: flex;
		justify-content: flex-end;
		align-items: center;
		
		.bei-item {
			border-radius: 17rpx;
			border: 1px solid #ADB1B8;
			padding: 5rpx 15rpx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			font-size: 24rpx;
			color: #ADB1B8;
			margin-right: 20rpx;
		}
	}
	.user {
		width: 100%;
		flex-direction: column;
		margin-top: 97rpx;
		margin-bottom: 36rpx;
		.user-header {
			width: 200rpx;
			height: 200rpx;
			
			border-radius: 16rpx;
			position: relative;
			.user-header-avatar {
				border-radius: 16rpx;
			}
			.user-header-sex {
				width: 36rpx;
				height: 36rpx;
				background: #03A8FF;
				border-radius: 50%;
				position: absolute;
				bottom: -18rpx;
				right: -18rpx;
				image {
					width: 22rpx;
					height: 21rpx;
				}
			}
		}
		.user-name {
			margin-top: 32rpx;
			font-family: Source Han Sans CN;
			font-weight: 500;
			font-size: 30rpx;
			color: #84643B;
			text {
				margin-right: 10rpx;
			}
			text:last-child{
				margin-right: 0;
			}
		}
	}
	.tag {
		width: 100%;
		box-sizing: border-box;
		padding-left: 46rpx;
		display: flex;align-items: center;
		margin-bottom: 37rpx;
		.tag-item {
			height: 34rpx;
			background: #999999;
			border-radius: 17rpx;
			padding: 0 12rpx;
			margin-right: 5rpx;
			width: fit-content;
			image {
				width: 24rpx;
				height: 24rpx;
			}
			font-family: Source Han Sans CN;
			font-weight: 400;
			font-size: 24rpx;
			color: #FFFFFF;
		}
		.tag-item-error {
			background: #FF5F5F;
		}
		.tag-item-warning {
			background: #FF9A3F;
		}
	}
	.layout {
		width: 100%;
		box-sizing: border-box;
		padding: 0 46rpx;
		border-bottom: 20rpx solid #EFE9DD;
		.layout-item {
			margin-bottom: 39rpx;
			.layout-item-label {
				font-family: Source Han Sans CN;
				font-weight: 400;
				font-size: 24rpx;
				color: #84643B;
				margin-bottom: 22rpx;
			}
			.layout-item-tx {
				font-family: Source Han Sans CN;
				font-weight: 400;
				font-size: 28rpx;
				color: #333333;
			}
		}
	}
	.relationship {
		width: 100%;
		box-sizing: border-box;
		padding: 30rpx 46rpx;
		border-bottom: 20rpx solid #EFE9DD;
		.relationship-title {
			font-family: Source Han Sans CN;
			font-weight: 500;
			font-size: 36rpx;
			color: #333333;
			margin-bottom: 66rpx;
			
		}
		.relationship-list {
			width: 100%;
			.relationship-list-item {
				width: 100%;
				margin-bottom: 40rpx;
				.relationship-list-item-c {
					
					.relationship-list-item-c-name {
						font-family: Source Han Sans CN;
						font-weight: 400;
						font-size: 30rpx;
						color: #84643B;
						margin-right: 20rpx;
					}
					.relationship-list-item-c-tag {
						width: fit-content;
						height: 49rpx;
						border-radius: 16rpx;
						border: 1rpx solid #03A8FF;
						.relationship-list-item-c-tag-l {
							width: 49rpx;
							height: 49rpx;
							background: #03A8FF;
							border-bottom-left-radius: 16rpx;
							border-top-left-radius: 16rpx;
							image {
								width: 27rpx;
								height: 26rpx;
							}
						}
						.relationship-list-item-c-tag-name {
							font-family: Source Han Sans CN;
							font-weight: 500;
							font-size: 30rpx;
							color: #333333;
							height: 100%;
							padding: 0 10rpx;
						}
					}
					.woman {
						border: 1rpx solid #FE2687;
						.relationship-list-item-c-tag-l {
							background: #FE2687;
						}
					}
				}
			}
		}
		
	}
	.album {
		width: 100%;
		box-sizing: border-box;
		padding: 30rpx 46rpx;
		border-bottom: 20rpx solid #EFE9DD;
		.album-t {
			margin-bottom: 80rpx;
			.album-t-title {
				font-family: Source Han Sans CN;
				font-weight: 500;
				font-size: 36rpx;
				color: #333333;
			}
			.album-t-r {
				font-family: Source Han Sans CN;
				font-weight: 400;
				font-size: 24rpx;
				color: #999999;
			}
		}
		.album-list {
			width: 100%;
			grid-gap: 17rpx;
			image {
				width: 208rpx;
				height: 208rpx;
				border-radius: 16rpx;
			}
		}
		.album-tx {
			font-family: Source Han Sans CN;
			font-weight: 500;
			font-size: 24rpx;
			color: #666666;
		}
	}
</style>